package com.logging;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.apache.log4j.Logger;

public class Log4jSample extends HttpServlet {
	protected void service(HttpServletRequest req, HttpServletResponse resp)	throws ServletException, IOException {
			
			org.apache.log4j.Logger log = Logger .getLogger(""/*LogClass.class*/); 
			//log.trace("Trace Message!"); 
			log.debug("Debug Message changed!"); 
			log.info("Info Message CHANGE BY CHARAN!"); 
			log.warn("Warn Message!"); 
			log.error("Error Message!"); 
			log.fatal("Fatal Message!"); 
	
	}
}
